<?php
require 'TVB/mytvplus/portal_service/server/requires.php';

$webservice_config = ConfigReaderFactory::getInstance()->getConfigReader(PortalWebServiceServer::CONFIG_FILE)->getConfig();

// initialize
$timeless   = isset($_REQUEST['timeless']) ? $_REQUEST['timeless'] : '';
$time_now   = isset($_REQUEST['time_now']) ? $_REQUEST['time_now'] : time();
$time_shift = isset($_REQUEST['time_shift']) ? $_REQUEST['time_shift'] : FALSE;

$server = new PortalWebServiceServer($webservice_config, $timeless, $time_now, $time_shift);
$server->process(); 
?>
